﻿@{ ViewBag.Title = "jQuery UI Autocomplete in ASP.NET MVC"; }
<label for="regions">Region:</label> @Html.TextBox("regions") <label for="territories">Territory:</label> @Html.TextBox("territories")
@section JavaScript {
    <script type="text/javascript">
        $(document).ready(function () {
            $("#regions").autocomplete({
                source: ['Eastern', 'Western', 'Northern', 'Southern']
            });
            $("#territories").autocomplete({
                source: '@Url.Action("AutocompleteAsync")'
            });
        });
    </script>
}

